package com.muqi.app.qlearn.adapter;

import java.util.List;

import com.muqi.app.qlearn.student.BaseFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class HomeBannerPageAdapter extends FragmentPagerAdapter {
	private List<BaseFragment> listData;

	public HomeBannerPageAdapter(List<BaseFragment> listData,
			FragmentManager manager) {
		super(manager);
		this.listData = listData;

	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return listData == null ? 0 : listData.size();
	}

	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return listData.get(arg0);
	}



}
